package com.service.impl;

import com.dao.IMyLog;
import com.model.MyLog;
import com.service.MyLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MyLogServiceImpl implements MyLogService {

    @Autowired
    private IMyLog iMyLog;

    @Override
    public int addMyLog(MyLog myLog) {
        return iMyLog.insertMyLog(myLog);
    }

    @Override
    public MyLog getLog(int ID) {
        return iMyLog.getMyLog(ID);
    }

    @Override
    public int updateMyLog(MyLog myLog) {
        return iMyLog.updateMyLog(myLog);
    }

    @Override
    public int deleteMyLog(int ID) {
        return iMyLog.deleteMyLog(ID);
    }

    @Override
    public List<MyLog> getAllMyLogs(MyLog myLog) { return iMyLog.getAllMyLogs(myLog); }
}
